package com.xy.ssm.service;

import com.xy.ssm.pojo.Dept;
import com.xy.ssm.test.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/2 13:28
 * @description
 */

@Service
public class DepartmentService {
    @Autowired
    DeptMapper deptMapper;
    public List<Dept> getAll() {
        List<Dept> depts = deptMapper.selectByExample(null);
        return depts;
    }
}
